using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Sandia.MVCFramework.Common
{
    /// <summary>
    /// Wrapper class to implement IWin32Window interface
    /// around a window handle
    /// </summary>
    public class WindowHandleWrapper: IWin32Window
    {
        IntPtr handle;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="handle">Window handle to wrap</param>
        public WindowHandleWrapper(IntPtr handle)
        {
            this.handle = handle;
        }

        #region IWin32Window Members

        /// <summary>
        /// The window handle
        /// </summary>
        public IntPtr Handle
        {
            get { return this.handle; }
        }

        #endregion
    }
}
